/*
 * @Author: yuanlai
 * @Date: 2024-08-16 16:01:50
 * @LastEditors: lisong
 * @LastEditTime: 2025-07-07 10:21:06
 * @Description: file content
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/demo1',
    name: 'demo1',
    component: () => import('@/views/demo/demo1.vue')
  },
  {
    path: '/demo2',
    name: 'demo2',
    component: () => import('@/views/demo/demo2.vue')
  },
  {
    path: '/demo3',
    name: 'demo3',
    component: () => import('@/views/demo/demo3.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
